﻿<%@ Page Title="Schedule" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ActivitySchedule.aspx.cs" Inherits="Vision.Web.Pages.ActivitySchedule" %>
<asp:Content ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">        
    <asp:LinkButton Text="<< Back" Font-Size="8" ID="btnBack" runat="server" onclick="btnBack_Click" />
    <h2>Activity Scheduling</h2>    
    <div>
        <span>
            <asp:Label Text="Activity:" Width="65" runat="server" Font-Size="8"/>
            <asp:Label ID="lblActivtyName" runat="server" Font-Size="8"/>
        </span>
    </div>        
    <div>
        <span>
            <asp:Label Text="Description:" Width="65" runat="server" Font-Size="8"/>
            <asp:Label ID="lblActivtyDesc" runat="server" Font-Size="8"/>
        </span>
    </div>    
    <br />
    <div>
        <asp:LinkButton Text="New Schedule" Font-Size="8" ID="btnNewSchedule" runat="server" onclick="btnNewSchedule_Click" />
        <asp:GridView ID="gvActivitySchedules" runat="server" AutoGenerateColumns="false">
            <HeaderStyle BackColor="#4b6c9e" ForeColor="Black" Font-Size="8" Font-Bold="true" />
            <RowStyle Font-Size="8" />
            <Columns>
                <asp:TemplateField HeaderStyle-Width="60" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle">
                    <ItemTemplate>                                    
                        <asp:ImageButton ImageAlign="AbsMiddle" ImageUrl="~/Images/EditIcon.gif" Width="16" Height="16" OnClick="gvActivitySchedulesAction_Click" CommandName="EditSchedule" CommandArgument='<%#Eval("Id")%>' ToolTip="Edit Schedule" runat="server" />                        
                        <asp:ImageButton ImageAlign="AbsMiddle" ImageUrl="~/Images/DeleteIcon.gif" Width="16" Height="16" OnClick="gvActivitySchedulesAction_Click" CommandName="DeleteSchedule" CommandArgument='<%#Eval("Id")%>' ToolTip="Delete Schedule" runat="server" OnClientClick="javascript:return confirm('Do you want to delete this schedule?')"/>
                    </ItemTemplate>                                
                </asp:TemplateField>
                <asp:BoundField HeaderText="Key" DataField="Key"/>                
                <asp:BoundField HeaderText="Description" DataField="Description"/>
                <asp:BoundField HeaderText="ScheduleType" DataField="ScheduleType"/>
                <asp:BoundField HeaderText="ScheduleNextRunDate" DataField="ScheduleNextRunDate"/>
                <asp:BoundField HeaderText="ScheduleLastRunDate" DataField="ScheduleLastRunDate"/>
                <asp:CheckBoxField HeaderText="Active" DataField="Active" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
